package com.workerhelping.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.workerhelping.enums.OperationEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WorkerConfirmVO implements Serializable {
    private Integer id;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date operationDate;
    private Integer operation;
    private String operationStr;
    private String reason;
    private Integer checked;

    public String getOperationStr() {
        return OperationEnum.getOperationName(operation);
    }

}
